<div class="container">

    <div class="page-header">
        <div class="row">
            <h1 class="span8">View attributes</h1>
            <span class="span4">

            </span>
        </div>


    </div>
    <div class="row">

        <div class="span12">

            <div class="demo_jui">

                <table class="table table-striped table-bordered table-condensed">
                    <thead>
                        <tr>
                            <th>Attribute Code</th>
                            <th>Attribute Name</th>
                            <th>Attribute Type</th>
                            <th class="th-action center">Action</th>
                        </tr>
                    </thead>
                    <tbody>

                        <?  foreach($attributes as $attribute): ?> 

                            <tr>
                                <td><?=$attribute['ID']?></td>
                                <td><strong><?=$attribute['name']?></strong></td>
                                <td><?=$attribute['type']?></td>
                                <td class="center">
                                    <a href="<?=base_url()?>attributes/delete/<?=$attribute['ID']?>" rel="<?=$attribute['ID']?>" class="delete_post">Delete</a>
                                </td> 

                            </tr>                                      

                            <? endforeach; ?>

                    </tbody>
                </table>

            </div>

        </div>

    </div>

    </div>